package tests;

import ru.nsu.fit.iconveyor.conveyor.Conveyor;
import ru.nsu.fit.iconveyor.conveyor.storage.exporter.Exporter;
import ru.nsu.fit.iconveyor.conveyor.storage.importer.Importer;
import ru.nsu.fit.iconveyor.engine.Engine;
import ru.nsu.fit.iconveyor.engine.smart.SmartEngine;

/**
 * Simple math tests.
 *
 * @author Timur Zolotuhin (tzolotuhin@gmail.com)
 */
public class SimpleMathTest {
    public static void test_1() {
        try {
            Conveyor conveyor = Importer.importFromFile("examples/math_test_1.iconv");
            Engine engine = new SmartEngine(3);
            engine.setConveyor(conveyor);
            engine.start();
            Exporter.exportToFile("examples/1.iconv", conveyor);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    public static void main(String[] args) {
        test_1();
    }
}
